package org.ejc.persist.model;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Event implements Serializable {

    /** identifier field */
    private Integer eventId;

    /** persistent field */
    private int conventionAddressId;

    /** nullable persistent field */
    private String eventDesc;

    /** nullable persistent field */
    private Date date;

    /** nullable persistent field */
    private Date startTime;

    /** nullable persistent field */
    private Date endTime;

    /** persistent field */
    private org.ejc.persist.model.Convention convention;

    /** persistent field */
    private org.ejc.persist.model.Location location;

    /** persistent field */
    private Set tasks;

    /** full constructor */
    public Event(Integer eventId, int conventionAddressId, String eventDesc, Date date, Date startTime, Date endTime, org.ejc.persist.model.Convention convention, org.ejc.persist.model.Location location, Set tasks) {
        this.eventId = eventId;
        this.conventionAddressId = conventionAddressId;
        this.eventDesc = eventDesc;
        this.date = date;
        this.startTime = startTime;
        this.endTime = endTime;
        this.convention = convention;
        this.location = location;
        this.tasks = tasks;
    }

    /** default constructor */
    public Event() {
    }

    /** minimal constructor */
    public Event(Integer eventId, int conventionAddressId, org.ejc.persist.model.Convention convention, org.ejc.persist.model.Location location, Set tasks) {
        this.eventId = eventId;
        this.conventionAddressId = conventionAddressId;
        this.convention = convention;
        this.location = location;
        this.tasks = tasks;
    }

    public Integer getEventId() {
        return this.eventId;
    }

    public void setEventId(Integer eventId) {
        this.eventId = eventId;
    }

    public int getConventionAddressId() {
        return this.conventionAddressId;
    }

    public void setConventionAddressId(int conventionAddressId) {
        this.conventionAddressId = conventionAddressId;
    }

    public String getEventDesc() {
        return this.eventDesc;
    }

    public void setEventDesc(String eventDesc) {
        this.eventDesc = eventDesc;
    }

    public Date getDate() {
        return this.date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return this.endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public org.ejc.persist.model.Convention getConvention() {
        return this.convention;
    }

    public void setConvention(org.ejc.persist.model.Convention convention) {
        this.convention = convention;
    }

    public org.ejc.persist.model.Location getLocation() {
        return this.location;
    }

    public void setLocation(org.ejc.persist.model.Location location) {
        this.location = location;
    }

    public Set getTasks() {
        return this.tasks;
    }

    public void setTasks(Set tasks) {
        this.tasks = tasks;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("eventId", getEventId())
            .toString();
    }

}
